import request from '@/utils/request.js'

// 分页查询
export const reservationListService = (params)=>{
    return request.get('/locationRecord/selectPage',{params})
}

// 根据编号查询
export const findReservationService = (number)=>{
    return request.get('/locationRecord/findByNumber?number='+number)
}

//删除
export const deleteReservationService = (id) => {
    return request.delete('/locationRecord/delete?id='+id)
}

//批量删除
export const batchDeleteReservationService = (ids)=>{
    return request.delete('/locationRecord//delete/batch',{data:ids})
}

//取消预约
export const cancelAppointmentService = (id) => {
    return request.post('/locationRecord/updateByAdmin?id='+id)
}